﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace HA.Data
{

    /// <summary>
    /// Scalar值（要抽取的等值线的值）和对应的颜色RGB值
    /// </summary>
[Serializable ]
 public    class LinearContourColorValue:ICloneable 
 {

     #region 构造函数

     public LinearContourColorValue()
     { 
     
     }

     #endregion



     #region 字段属性

     double _value = 0.0;
    /// <summary>
    /// 要抽取的等值线的值
    /// </summary>
     public double Value
     {
         get { return _value; }
         set { _value = value; }
     }


     //System.Windows.Media.Color

     System.Drawing.Color color = System.Drawing.Color.FromArgb(1, 0, 0, 0);

     public System.Drawing.Color Color
     {
         get { return color; }
         set { color = value; }
     }


    

    

 

     #endregion


     #region 内部方法

     #endregion


     #region 公有方法

     #endregion

     #region 属性改变方法

     #endregion








     #region ICloneable 成员

     public object Clone()
     {
         LinearContourColorValue option = (LinearContourColorValue)this.MemberwiseClone();

         int r = this.color.R;
         int g = this.color.G;
         int b = this.color.B;
         int A = this.color.A;


         option.color = System.Drawing.Color.FromArgb(A, r, g, b);


         return option;

         //throw new NotImplementedException();
     }

     #endregion
 }
}
